<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>精羽门-羽毛球爱好者的江湖</title>
    <!-- Bootstrap core CSS -->
    <link href="__PUBLIC__/Css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/Css/startbbs.css" rel="stylesheet">
    <link rel="stylesheet" href="__PUBLIC__/Css/allan.css">

</head>
<body>
<!-- Static navbar -->
<div class="navbar navbar-default navbar-static-top" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/">精羽门</a>
    </div>
    <div class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li id='nav_index'><a href="/">首页</a></li>
        <li id='nav_about'><a href="<?php echo U('Index/about');?>">关于</a></li>
        <li id="nav_act_add"><a href="<?php echo U('Activity/add');?>">发起活动</a></li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <?php if ($_SESSION['uname']) : ?>
        	<li><a href='#'>欢迎<?php echo $_SESSION['uname']; ?></a></li>
        	<li><a href='<?php echo U('Login/logout');?>'>注销</a></li>
        <?php else : ?>
        	<li id='nav_login'><a href='<?php echo U('Login/login');?>'>登录</a></li>
			<li id='nav_reg'><a href='<?php echo U('Login/register');?>'>注册</a></li>
		<?php endif; ?>	
      </ul>
    </div><!--/.nav-collapse -->
  </div>
</div>
	  <div class="container">
		<div class="jumbotron">
			<h2>欢迎来到精羽门</h2>
			<p>这是一个羽毛球爱好者的江湖。</p><p>希望你在这里能找到喜欢的活动，遇到兴趣相投的朋友</p>
		</div>
		<hr>
<footer>
  <p>AntsClub 2013-2014</p>
</footer>
    </div> 
    <script src="__PUBLIC__/Js/jquery-1.8.0.min.js"></script>
<script src="__PUBLIC__/Js/bootstrap.min.js"></script>
    <script type="text/javascript">
    	$(function(){
    		$('#nav_about').addClass('active');
    	})
    </script>
</body>
</html>